<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>用户登录</h1>
    <form method="post" action="/login/">
        {% csrf_token %}
        <input type="text" name="user" placeholder="用户名"></input>
        <input type="password" name="pswd" placeholder="密码"></input>
        <input type="submit" value="提交"></input>
        <span style="color: red">{{ error_msg }}</span>

    </form>

</body>
</html>